/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.cip.esymons.tesoreria.bc;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import javax.ejb.EJB;
import javax.ejb.SessionContext;
import javax.ejb.Stateless;

/**
 *
 * @author Administrador
 */
@Stateless
@EJB(name = "RealizarPagoBean", beanInterface = RealizarPagoLocal.class)
public class EjecutarPagoBean implements EjecutarPagoLocal {
    
    @Resource
    SessionContext context;
    RealizarPagoLocal realizarPago;

    @PostConstruct
    @Override
    public synchronized void init() {
        realizarPago = (RealizarPagoLocal) context.lookup("RealizarPagoBean");
    }

    @Override
    public synchronized RealizarPagoLocal getRealizarPago(){
        return realizarPago;
    }
}
